﻿@model List<Project_KhuyenMaiVang.Models.DonDatHang>
@{
    ViewBag.Title = "LichSuMuaHang";
    Layout = "~/Views/Shared/_LayoutMember.cshtml";
}

<h2  class="TieuDeTheTable">LỊCH SỬ MUA HÀNG</h2>

<table width="700" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td colspan="6" class="TieuDeTheTable"><div align="center"></div></td>
      </tr>
      <tr class="Bg_TieuDeTable">
        <td width="50" bordercolor="#8AB657" align =center>STT</td>
        <td width="150" bordercolor="#8AB657">Sản phẩm</td>
        <td width="200" bordercolor="#8AB657" align =center>Số lượng</td>
        <td bordercolor="#8AB657">Tình trạng đơn đặt hàng</td>
        <td bordercolor="#8AB657">&nbsp;</td>
      </tr>
      @{var i = 0;}
      @foreach (var item in Model)
      {
          i++;
            <tr>
                <td align =center>@Html.Label(i.ToString())</td>
                <td>@Html.Label(item.TenSanPham)</td>
                <td align =center>@Html.Label(item.SoLuong.ToString())</td>
                <td>@Html.Label(item.TinhTrangDonHang)
                </td>
                <td>
                    <a href =@Url.Action("delete", "QuanLyDonDatHang", new { idOrder = item.MaDonDatHang })><img src ="../../Content/Images/delete.png"/></a>
                </td>
            </tr>
      }
  </table>
